# -*- coding:utf-8 -*-
class homeWorkDay2:
    '''第二天作业'''
    def fac10(self):
        '''10的阶乘'''
        fResult=1
        i=1
        while (i <= 10):
            fResult = fResult * i
            i += 1
        print fResult

    def rem(self):
        '''100以内能被3整除的数'''
        a=1
        while a<=100:
            if (a % 3==0):
                print a
            a+=1

    def calculator(self):
        '''加减乘除计算器'''
        a=float(raw_input("请输入要运算的第一个数"))
        b = float(raw_input("请输入要运算的第二个数"))
        c=raw_input("请输入要进行的运算：+ - * /")
        print a,b,c
        if (c == '+'):
            print 'result =',a + b
        elif(c == '-'):
            print 'result =',a - b
        elif(c == '*'):
            print 'result =', a * b
        elif(c == '/'):
            print 'result =', a / b
        else:
            print '运算符不正确！'

#main
day2=homeWorkDay2()
day2.calculator()